Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

161
Views
HTMLunit-"Error: [MobX] Proxy no disponible"

Estoy tratando de usar htmlunit para obtener datos de un sitio web de JavaScript. Actualmente, solo intento llamar al sitio con webClient.getPage, que ya está generando una excepción.

 public static void main(String[] args) throws Exception { final WebClient webClient = new WebClient(); webClient.getOptions().setThrowExceptionOnScriptError(false); webClient.setJavaScriptTimeout(10000); webClient.getOptions().setJavaScriptEnabled(true); webClient.setAjaxController(new NicelyResynchronizingAjaxController()); webClient.getOptions().setTimeout(10000); final HtmlPage page1 = webClient.getPage("[my-site-url-here]"); }

Recibo la siguiente excepción:

 ======= EXCEPTION START ======== Exception class=[net.sourceforge.htmlunit.corejs.javascript.JavaScriptException] com.gargoylesoftware.htmlunit.ScriptException: Error: [MobX] Proxy not available (https://[my-site-here]/static/js/8.107d4023.chunk.js#1)

Como se ve en mi fragmento de código, ya apliqué las opciones observadas en otros subprocesos con respecto a los errores js al usar htmlunit. No estoy usando un proxy, el sitio web está usando cloudflare. ¿Podría ser este el problema? Gracias de antemano.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

[MobX] Proxy no disponible

parece que el código js nota la falta (actualmente) de compatibilidad con Proxy en el motor javascript de HtmlUnit/Rhino. Por lo general, las páginas realizan algunas comprobaciones de funciones js al principio e informan problemas (o incluso mejor, usan solo las funciones disponibles).

Abra un problema para HtmlUnit y, si es posible, incluya la URL de la página para ayudarnos a reproducir el problema.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!